- css_class = local_assigns.fetch(:css_class, '')

- if group.self_deletion_in_progress?
  = render Pajamas::BadgeComponent.new(_('Deletion in progress'), variant: 'warning', class: css_class)
- elsif group.scheduled_for_deletion_in_hierarchy_chain?
  = render Pajamas::BadgeComponent.new(_('Pending deletion'), variant: 'warning', class: css_class)
- elsif group.self_or_ancestors_archived?
  = render Pajamas::BadgeComponent.new(_('Archived'), variant: 'info', class: css_class)
